package cn.tede.submarine;
import javax.swing.*;
import java.util.Random;
/**
侦查潜艇
 */
public class ObserveSubmarine extends SeaObject implements EnemyScore{

    public ObserveSubmarine(){//不知道要不要参数都先假设无参
        super(63,19);
    }//构造方法也是方法

//重新move()方法
    public void move(){
        x += speed;//x+表示向右移动
    }
    public ImageIcon getImage(){
        return Images.obsersubm;
    }
    public int getScore(){
        return 10;
    }
}
